package com.qly.website.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class ZikpinController {

    @Autowired
    private RestTemplate restTemplate;

    @RequestMapping("/invoke_wapsite_service")
    public String invokeWapsiteService() {
        return restTemplate.getForObject("http://QLY-WAPSITE/wapsite_api", String.class);
    }

}
